package injection;

import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Injection {
	public static void main(String[] args) {
		ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext("applicationContext.xml");
//		Car car = (Car) ctx.getBean("car");
//		System.out.println(car);
//		car = (Car) ctx.getBean("car1");
//		System.out.println(car);
		Person person = (Person) ctx.getBean("person1");
		System.out.println(person);
	}
}
